//
//  OrderDetailTableViewCell.h
//  B2C
//
//  Created by 李小龙 on 2017/8/2.
//  Copyright © 2017年 lixiaolong. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "OrderModel.h"

typedef NS_ENUM(NSUInteger, DetailCellClickType) {
    DetailCellClickTypeRefund,
    DetailCellClickTypeNone,
    DetailCellClickTypeCopy,
};
typedef void(^OrderDetailBlock)(DetailCellClickType type);

@interface OrderDetailTableViewCell : UITableViewCell

@property (weak, nonatomic) IBOutlet UILabel *firstLeftLabel;
@property (weak, nonatomic) IBOutlet UILabel *firstRightLabel;

@property (weak, nonatomic) IBOutlet UILabel *secondNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *secondPhoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *secondAddressLabel;

@property (weak, nonatomic) IBOutlet UIImageView *thirdImageView;
@property (weak, nonatomic) IBOutlet UILabel *thirdNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *thirdSpecsLabel;
@property (weak, nonatomic) IBOutlet UILabel *thirdCountLabel;
@property (weak, nonatomic) IBOutlet UILabel *thirdPriceLabel;

@property (weak, nonatomic) IBOutlet UIButton *fourthRefundButton;
@property (weak, nonatomic) IBOutlet UIView *fourthLineView;

@property (weak, nonatomic) IBOutlet UILabel *fifthContentLabel;
@property (weak, nonatomic) IBOutlet UILabel *fifthPriceLabel;

@property (weak, nonatomic) IBOutlet UILabel *sixthOrderNumberLabel;
@property (weak, nonatomic) IBOutlet UILabel *sixthOrderDateLabel;
@property (weak, nonatomic) IBOutlet UIButton *sixthCopyButton;

@property (weak, nonatomic) IBOutlet UILabel *seventhReasonLabel;
@property (weak, nonatomic) IBOutlet UILabel *seventhPriceLabel;
@property (weak, nonatomic) IBOutlet UILabel *seventhDateLabel;

@property (nonatomic, copy) OrderDetailBlock detailBlock;

#pragma mark - 订单详情
+ (instancetype)orderDetailCellWith:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath count:(NSInteger)count;
- (void)updateCellWith:(OrderModel *)model indexPath:(NSIndexPath *)indexPath;
#pragma mark - 退款订单详情
+ (instancetype)refundDetailCellWith:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath count:(NSInteger)count;
- (void)updateRefundDetailCellWith:(OrderModel *)model indexPath:(NSIndexPath *)indexPath count:(NSInteger)count;

@end
